import Service from './$axios'
/******************************************************入库管理 */

//质检单查询
export const  queryInspectionSheetBySearch= (data) => {
  return Service({
      url:'gd-wms-warehousing/warehousing/queryInspectionSheetBySearch',
      method:'post',
      data:data
  })
}
//质检单查询----合格/不合格
export const  isQuaSheetList= (data) => {
  return Service({
      url:'gd-wms-warehousing/warehousing/isQuaSheetList',
      method:'post',
      data:data
  })
}
//收货异常
export const queryFromWeb= (data) => {
  return Service({
      url:'gd-wms-warehousing/warehousing/queryFromWeb',
      method:'post',
      data:data
  })
}

//web端收货异常页面详情
export const queryFromWebDetails= (data) => {
  return Service({
      url:'gd-wms-warehousing/warehousing/queryFromWebDetails',
      method:'post',
      data:data
  })
}
//质检单详情---箱号
export const queryInspectionSheetBox= (data) => {
  return Service({
      url:'gd-wms-warehousing/warehousing/queryInspectionSheetBox',
      method:'post',
      data:data
  })
}
//质检单详情
export const queryInspectionSheetDetails= (data) => {
  return Service({
      url:'gd-wms-warehousing/warehousing/queryInspectionSheetDetails',
      method:'post',
      data:data
  })
}
//质检单图片详情
export const queryInspectionSheetDetailsPhotos= (data) => {
  return Service({
      url:'gd-wms-warehousing/warehousing/queryInspectionSheetDetailsPhotos',
      method:'post',
      data:data
  })
}

//入库web端审核
export const reportSRM= (data) => {
  return Service({
      url:'gd-wms-warehousing/warehousing/reportSRM',
      method:'post',
      data:data
  })
}
// warehousing/warehousingDetails
//入库情况
export const warehousingDetails= (data) => {
  return Service({
      url:'gd-wms-warehousing/warehousing/warehousingDetails',
      method:'post',
      data:data
  })
}
//入库情况----详情
export const warehousingDetailsInside= (data) => {
  return Service({
      url:'gd-wms-warehousing/warehousing/warehousingDetailsInside',
      method:'post',
      data:data
  })
}

/****************************** */
//退货管理
// 生产退料gd-wms-retreat
export const  findMaterialPageList= (str) => {
  return Service({
      url:'gd-wms-retreat/rejectedMaterial/findMaterialPageList' + str,
      method:'get'
  })
}
// 生产退料gd-wms-retreat----展开table
export const  findMaterialDetailsList= (str) => {
  return Service({
      url:'gd-wms-retreat/rejectedMaterial/findMaterialDetailsList' + str,
      method:'get'
  })
}
// 生产退料gd-wms-retreat-----产线产品下拉框
export const  findMaterialProductList= () => {
  return Service({
      url:'gd-wms-retreat/rejectedMaterial/findMaterialProductList' ,
      method:'get'
  })
}

// 余料退库gd-wms-retreat excessStock/findStockPageList
export const  findStockPageList= (str) => {
  return Service({
      url:'gd-wms-retreat/excessStock/findStockPageList' + str,
      method:'get'
  })
}
// 余料退库gd-wms-retreat
export const  findStockDetailsList= (str) => {
  return Service({
      url:'gd-wms-retreat/excessStock/findStockDetailsList' + str,
      method:'get'
  })
}
// 余料退料gd-wms-retreat-----产线产品下拉框
export const  findStockProductList= () => {
  return Service({
      url:'gd-wms-retreat/excessStock/findStockProductList' ,
      method:'get'
  })
}

/*****出入库 */

//入库情况----查询
export const findAllRecord= (data) => {
  return Service({
      url:'gd-wms-base/warehouse/findAllRecord',
      method:'post',
      data:data
  })
}

// 入库————下拉显示所有物料编号
export const findMaterial= () => {
  return Service({
      url:'gd-wms-base/warehouse/findMaterial',
      method:'get'
  })
}

// 入库————下拉显示所有供应商编号
export const findSupplier= () => {
  return Service({
      url:'gd-wms-base/warehouse/findSupplier',
      method:'get'
  })
}

//出库情况----查询
export const findOutRecord= (data) => {
  return Service({
      url:'gd-wms-base/warehouse/findOutRecord',
      method:'post',
      data:data
  })
}

// 出库————下拉显示所有物料编号
export const findOutMaterial= () => {
  return Service({
      url:'gd-wms-base/warehouse/findOutMaterial',
      method:'get'
  })
}

// 出库————下拉显示所有供应商编号
export const findOutSupplier= () => {
  return Service({
      url:'gd-wms-base/warehouse/findOutSupplier',
      method:'get'
  })
}
/***************************************************** */
// 物料检验图————查询
export const getMaterInfo= (str) => {
  return Service({
      url:'gd-wms-base/kanban/getMaterInfo'+str,
      method:'get'
  })
}
// /kanban/addMaterFile
// 物料检验图————新增
export const addMaterFile= (data) => {
  return Service({
      url:'gd-wms-base/kanban/addMaterFile',
      method:'post',
      data:data
  })
}
// /kanban/getMaterFileInfo/
// 物料检验图————新增
export const getMaterFileInfo= (str) => {
  return Service({
      url:'gd-wms-base/kanban/getMaterFileInfo/'+str,
      method:'get'
  })
}
// /kanban/deleteMaterFile/{id}   
// 物料检验图————删除
export const deleteMaterFile= (str) => {
  return Service({
      url:'gd-wms-base/kanban/deleteMaterFile/'+str,
      method:'post'
  })
}
/*************************************** */
//库管员对应产线------查询
// /storekeeperLine/findAll
export const findAll= (str) => {
  return Service({
      url:'gd-wms-base/storekeeperLine/findAll'+str,
      method:'get'
  })
}
// storekeeperLine/query
// 库管员对应产线------查询部门和人员
export const query= (str) => {
  return Service({
      url:'gd-wms-base/storekeeperLine/query'+str,
      method:'get'
  })
}
// /storekeeperLine/getAllLine/{userId}
// 库管员对应产线------查询人员产线
export const getAllLine= (str) => {
  return Service({
      url:'gd-wms-base/storekeeperLine/getAllLine/'+str,
      method:'get'
  })
}
// /storekeeperLine/updateOrSave
// 库管员对应产线------查询人员产线
export const updateOrSave= (data) => {
  return Service({
      url:'gd-wms-base/storekeeperLine/updateOrSave',
      method:'post',
      data:data
  })
}
/********************************************** */
// 物料检验图-----取样数量配置
// /qualityInspection/addInspection
export const addInspection= (data) => {
  return Service({
      url:'gd-wms-base/qualityInspection/addInspection',
      method:'post',
      data:data
  })
}
// 查询检验项目
// /qualityInspection/selectWarehousingQuality
export const selectWarehousingQuality= (data) => {
  return Service({
      url:'gd-wms-base/qualityInspection/selectWarehousingQuality' + data,
      method:'get'
  })
}
// 查询物料列表
// /qualityInspection/selectPageList
export const selectPageList= (data) => {
  return Service({
      url:'gd-wms-base/qualityInspection/selectPageList' + data,
      method:'get'
  })
}
// /qualityInspection/add
// 新增检验项目
export const add= (data) => {
  return Service({
      url:'gd-wms-base/qualityInspection/add',
      method:'post',
      data:data
  })
}
// 删除检验项目
// /qualityInspection/selectPageList
export const deleteWarehousing= (data) => {
  return Service({
      url:'gd-wms-base/qualityInspection/deleteWarehousing/' + data,
      method:'delete'
  })
}

// 库存查询inventoryQuery/queryBox
export const inventoryQuery= (data) => {
  return Service({
      url:'gd-wms-cougny/inventoryQuery/inventoryQuery',
      method:'post',
      data:data
  })
}

// 加号查箱子
export const queryBox= (str) => {
  return Service({
      url:'gd-wms-cougny/inventoryQuery/queryBox'+str,
      method:'get'
  })
}
// 查询仓库/inventoryQuery/queryNextNode
export const queryNextNode= (str) => {
  return Service({
      url:'gd-wms-cougny/inventoryQuery/queryNextNode'+str,
      method:'get'
  })
}
// queryStorageLocationCod
export const queryStorageLocationCod= (str) => {
  return Service({
      url:'gd-wms-cougny/inventoryQuery/queryStorageLocationCod'+str,
      method:'get'
  })
}
// 导出
export const exportExcel= (data) => {
  return Service({
      url:'gd-wms-cougny/inventoryQuery/excel/exportExcel',
      method:'post',
      data:data,
      responseType:'blob'
  })
}
///warehousing/queryRefusedRecord 拒收web查询
export const queryRefusedRecord = (data) => {
  return Service({
      url: 'gd-wms-warehousing/warehousing/queryRefusedRecord',
      method: 'post',
      data,
  })
}
///warehousing/refusedPhoto 拒收图片详情
export const refusedPhoto = (str) => {
  return Service({
      url: 'gd-wms-warehousing/warehousing/refusedPhoto?'+str,
      method: 'get',
  })
}
//qualityInspection/queryAql/{samplingPlan} 允收水准查询
export const queryAql = (str) => {
  return Service({
      url: 'gd-wms-base/qualityInspection/queryAql/'+str,
      method: 'get',
  })
}
///qualityInspection/queryItem 下拉查询检验项目
export const queryItem = () => {
  return Service({
      url: 'gd-wms-base/qualityInspection/queryItem',
      method: 'get',
  })
}
//qualityInspection/queryMethod 下拉查询检验方式
export const queryMethod = () => {
  return Service({
      url: 'gd-wms-base/qualityInspection/queryMethod',
      method: 'get',
  })
}
//qualityInspection/itemList 检验项基础信息列表
export const itemList = (data) => {
  return Service({
      url: 'gd-wms-base/qualityInspection/itemList',
      method: 'post',
      data
  })
}
//qualityInspection/methodList 检验方式基础信息列表
export const methodList = (data) => {
  return Service({
      url: 'gd-wms-base/qualityInspection/methodList',
      method: 'post',
      data,
  })
}
//qualityInspection/addOrUpdateItem 新增/修改检验项基础信息
export const addOrUpdateItem = (data) => {
  return Service({
      url: 'gd-wms-base/qualityInspection/addOrUpdateItem',
      method: 'post',
      data,
  })
}
//qualityInspection/addOrUpdateMethod 新增/修改检验方式基础信息
export const addOrUpdateMethod = (data) => {
  return Service({
      url: 'gd-wms-base/qualityInspection/addOrUpdateMethod',
      method: 'post',
      data,
  })
}


